<%--
  Created by IntelliJ IDEA.
  User: IFT8
  Date: 2015/3/14
  Time: 20:04
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title></title>
</head>
<body>
<h3>c:out</h3>
<h4>自动转义</h4>
<c:out value='<a href="#">aaa</a>'></c:out>
<h4>变量默认值</h4>
<%
    String str="str666666";
    pageContext.setAttribute("str",str);
%>
str=<c:out value="${str}"></c:out><br>
str1=<c:out value="${str1}" default="nothing"></c:out>
</body>
</html>
